package com.cet.java8;

import java.util.Arrays;
import java.util.List;
import java.util.concurrent.FutureTask;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-07-01 09:42
 **/
public class LambdaExpressionTest {

    public static void main(String[] args) {

        int j = 10;

        List<Integer> integers = Arrays.asList(1, 2, 3, 4, 5);

        for (int i : integers) {
            FutureTask<Integer> futureTask = new FutureTask<>(() -> {
//                i++;
//                j++;
                return 1;
            });

            Thread thread = new Thread(futureTask);
        }
    }
}
